#!/bin/bash
if [ -d cxx ]; then
	pushd cxx >/dev/null
fi
build=build
if [ ! -d ${build} ]; then
	mkdir $build
fi
pushd ${build}
cmake .. -DCMAKE_BUILD_TYPE=DEBUG
make -j16
if [ $? -eq 0 ]; then
	make test
else
	printf "\033[31mError to make\n\033[0m"
	exit
fi

popd
popd
